package db.dbTables;

public abstract class AbstractCrossDBTable extends AbstractDBTable {

    private AbstractDBTable table1;
    private AbstractDBTable table2;

    private DbColumn table1ID;
    private DbColumn table2ID;

    public AbstractCrossDBTable(String name,
            AbstractDBTable table1, AbstractDBTable table2) {
        super(name);
        this.table1 = table1;
        this.table2 = table2;
    }

    public void setTable1IDColumn(DbColumn col) {
        this.table1ID = col;
    }

    public void setTable2IDColumn(DbColumn col) {
        this.table2ID = col;
    }

    public AbstractDBTable getTable1() {
        return table1;
    }

    public AbstractDBTable getTable2() {
        return table2;
    }

    public DbColumn getTable1IDColumn() {
        return table1ID;
    }

    public DbColumn getTable2IDColumn() {
        return table2ID;
    }

}
